from airtest.report.report import simple_report
from common.conf_path import *

class DoReport():
    def doReport(self):
        logFile = os.path.join(report_txt_path, "log.txt")
        htmlFile = os.path.join(report_html_path, "log.html")
        simple_report(__file__,
                      logpath=False,  #不取默认的报告路径
                      logfile=logFile,  #报告源文件的路径及名称
                      output=htmlFile)  #生成html格式的报告的路径及名称
